package dk.dashboardFP.panels.loggerPanel {
	import flash.display.Sprite;

	/**
	 * @author josef
	 */
	public class LevelMarkers extends Sprite {
		public static const MARK_SPACE_X : Number = 12;
		private var _levelMarks : Array;

		public function LevelMarkers() {
			
			setupElements();
		}
		
		//::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
		// setup
		//::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
		
		private function setupElements() : void {
			
			_levelMarks=[];
			
			for (var i : Number = 0; i < 4; i++) {
				
				var levelMark:LevelMark=new LevelMark(i);
				addChild(levelMark);
				
				levelMark.x=i*LevelMarkers.MARK_SPACE_X;
				
				_levelMarks.push(levelMark);
			}
		}

		
		override public function set height(value : Number) : void {
			for each (var levelMark : LevelMark in _levelMarks) {
				levelMark.height = value;
			}
		}
	}
}
